package com.zryc.shop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.zryc.shop.sms.mapper")
@RestController
@EnableFeignClients
public class SaleApp {
    public static void main(String[] args) {
        SpringApplication.run(SaleApp.class, args);//启动springboot应用
    }

    @GetMapping("/")
    public String welcome() {
        return "欢迎访问营销微服务~";
    }
}
